package javaDemo05;


import java.util.*;


public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入x1与y1的值,中间用空格隔开");
        double x1 = sc.nextDouble();
        double y1 = sc.nextDouble();
        System.out.println("请输入x2与y2的值,中间用空格隔开");
        double x2 = sc.nextDouble();
        double y2 = sc.nextDouble();
        double a = Math.pow((Math.pow(x2 - x1,2) + Math.pow(y2 - y1,2)),0.5);
        System.out.println(a);
    }
}